Shortcut | Description |
---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Released under the MIT License in 2014. http://opensource.org/licenses/mit-license */ | |
function isNodeList(nodes) { | |
var stringRepr = Object.prototype.toString.call(nodes); | |
return typeof nodes === 'object' && | |
/^\[object (HTMLCollection|NodeList|Object)\]$/.test(stringRepr) && | |
nodes.hasOwnProperty('length') && | |
(nodes.length === 0 || (typeof nodes[0] === "object" && nodes[0].nodeType > 0)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var IE = (function() { | |
if (document.documentMode) { | |
return document.documentMode; | |
} else { | |
for (var i = 7; i > 4; i--) { | |
var div = document.createElement("div"); | |
div.innerHTML = "<!--[if IE " + i + "]><span></span><![endif]-->"; | |
if (div.getElementsByTagName("span").length) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var requestAnimationFrame = window.requestAnimationFrame || (function() { | |
var timeLast = 0; | |
return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { | |
var timeCurrent = (new Date()).getTime(), | |
timeDelta; | |
/* Dynamically set the delay on a per-tick basis to more closely match 60fps. */ | |
/* Technique by Erik Moller. MIT license: https://gist.github.com/paulirish/1579671. */ | |
timeDelta = Math.max(0, 16 - (timeCurrent - timeLast)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Press Ctrl+Shift+Space to set any currently active window to be always on top. | |
; Press Ctrl+Shift+Space again set the window to no longer be always on top. | |
; Source: https://www.howtogeek.com/196958/the-3-best-ways-to-make-a-window-always-on-top-on-windows | |
^+SPACE:: | |
WinGetTitle, activeWindow, A | |
if IsWindowAlwaysOnTop(activeWindow) { | |
notificationMessage := "The window """ . activeWindow . """ is now always on top." | |
notificationIcon := 16 + 1 ; No notification sound (16) + Info icon (1) | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
; | |
(function main() { | |
let truePlayRate = 1.0; | |
let trueCurrentTime = NaN; | |
const speedList = [0.8, 1.0, 1.25, 1.5, 2.0]; | |
const isFrefox = navigator.userAgent.indexOf("Firefox") === -1 ? false : true; | |
const isEdge = navigator.userAgent.indexOf("EdgA") === -1 ? false : true; // yeah it's "EdgA" | |
let player; | |
const playerSize = { width: NaN, height: NaN }; |
NewerOlder